package models;

import play.*;
import play.data.validation.Email;
import play.data.validation.MaxSize;
import play.data.validation.Required;
import play.db.jpa.*;
import javax.persistence.*;
import java.util.*;

@Entity
public class Cliente extends Model {
	
	@Required
	@MaxSize(30)
	public String nombreContacto;
	@Required
	@MaxSize(30)
	public String razonSocial;
	@MaxSize(30)
	public String cUI;
	@MaxSize(30)
	public String direccion;
	@MaxSize(15)
	public String telefono;
	@MaxSize(15)
	public String celular;
	@MaxSize(25)
	@Email
	public String email;
	public boolean deleted;
	@ManyToOne
	@JoinColumn(name="idPosicionIVA")
	public PosicionIVA posicionIVA;
    
}
